package com.hertz.alarm.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.hertz.alarm.dao.AbstractEntity;

// Generated 2013-12-4 10:49:04 by Hibernate Tools 3.4.0.CR1

/**
 * MatchNba generated by hbm2java
 */
@Entity
@Table(name = "iris_match_nba", catalog = "app_myiris")
@NamedQueries({
	@NamedQuery(name = MatchNba.GET_BY_SOURCE_ID,query = "from MatchNba where sourceId=? "),
	@NamedQuery(name = MatchNba.GETS_BY_YMD,query = "from MatchNba where matchDay=? order by matchTime ")
})
public class MatchNba implements AbstractEntity<Long>,Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 3757532629771582650L;
	public final static String GET_BY_SOURCE_ID = "getBySourceId";
	public final static String GETS_BY_YMD = "getsByYmd";
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	@Column(name="source_id")
	private String sourceId;
	@Column(name="host_team_id")
	private short hostTeamId;
	@Column(name="guest_team_id")
	private short guestTeamId;
	@Column(name="match_time")
	private String matchTime;
	@Column(name="match_day")
	private String matchDay;
	@Column(name="host_score")
	private Short hostScore;
	@Column(name="guest_score")
	private Short guestScore;
	private String season;
	private byte type;
	private String status;
	private byte period;
	private String remain;
	private long ctime;
	private long utime;
	
	public MatchNba() {
	}

	public MatchNba(String sourceId, byte hostTeamId, byte guestTeamId,
			String matchTime, byte type, String status, byte period,
			String remain, long ctime, long utime) {
		this.sourceId = sourceId;
		this.hostTeamId = hostTeamId;
		this.guestTeamId = guestTeamId;
		this.matchTime = matchTime;
		this.type = type;
		this.status = status;
		this.period = period;
		this.remain = remain;
		this.ctime = ctime;
		this.utime = utime;
	}

	public MatchNba(String sourceId, short hostTeamId, short guestTeamId,
			String matchTime, Short hostScore, Short guestScore, byte type,
			String status, byte period, String remain, long ctime, long utime) {
		this.sourceId = sourceId;
		this.hostTeamId = hostTeamId;
		this.guestTeamId = guestTeamId;
		this.matchTime = matchTime;
		this.hostScore = hostScore;
		this.guestScore = guestScore;
		this.type = type;
		this.status = status;
		this.period = period;
		this.remain = remain;
		this.ctime = ctime;
		this.utime = utime;
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getSourceId() {
		return this.sourceId;
	}

	public void setSourceId(String sourceId) {
		this.sourceId = sourceId;
	}

	public short getHostTeamId() {
		return this.hostTeamId;
	}

	public void setHostTeamId(short hostTeamId) {
		this.hostTeamId = hostTeamId;
	}

	public short getGuestTeamId() {
		return this.guestTeamId;
	}

	public void setGuestTeamId(short guestTeamId) {
		this.guestTeamId = guestTeamId;
	}

	public String getMatchTime() {
		return this.matchTime;
	}

	public void setMatchTime(String matchTime) {
		this.matchTime = matchTime;
	}

	public Short getHostScore() {
		return this.hostScore;
	}

	public void setHostScore(Short hostScore) {
		this.hostScore = hostScore;
	}

	public Short getGuestScore() {
		return this.guestScore;
	}

	public void setGuestScore(Short guestScore) {
		this.guestScore = guestScore;
	}

	public byte getType() {
		return this.type;
	}

	public void setType(byte type) {
		this.type = type;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public byte getPeriod() {
		return this.period;
	}

	public void setPeriod(byte period) {
		this.period = period;
	}

	public String getRemain() {
		return this.remain;
	}

	public void setRemain(String remain) {
		this.remain = remain;
	}

	public long getCtime() {
		return this.ctime;
	}

	public void setCtime(long ctime) {
		this.ctime = ctime;
	}

	public long getUtime() {
		return this.utime;
	}

	public void setUtime(long utime) {
		this.utime = utime;
	}

	public String getSeason() {
		return season;
	}

	public void setSeason(String season) {
		this.season = season;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
	}

	public String getMatchDay() {
		return matchDay;
	}

	public void setMatchDay(String matchDay) {
		this.matchDay = matchDay;
	}
}
